<template>
  <div class="layout">
    <image
      @click="modelNavigateTo(item)"
      :style="{ height: height + 'px', width: '33%' }"
      class="image-mode"
      :src="item.img"
      v-for="(item, index) in props.res.data.list"
      :key="index"
    >
    </image>
  </div>
</template>

<script setup lang="ts">
import { modelNavigateTo } from './tpl-v3'
import { px2rpx } from './px2rpx'
const height = ref(uni.getSystemInfoSync().screenWidth * 0.33)
const props = defineProps(['res'])
</script>
<style lang="scss" scoped>
img,
image {
  display: block !important;
}

.layout {
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
}

img {
  width: 111px;
}
</style>
